<?php
/**
 * Created by PhpStorm.
 * User: 10037
 * Date: 2022/6/13
 * Time: 8:39
 */

namespace app\admin\controller;


use app\admin\model\logtable;

class Log
{
    public function selectAllLog($page,$like){
        if($like==='0') {
            $log = new logtable();
            return $log->selectAllLog($page);
        }else{
            $log=new logtable();
            $result= $log->selectAllLogTime($page,$like);
            if(!empty($result[0])) {
                if (strpos($result[0]['logTime'], $like) !== false) {
                    return $result;
                } else {
                    return [];
                }
            }
        }
    }
}